#include <iostream>
#include <signal.h>
#include <unistd.h>
void hander(int sigsum){
    std::cout << "The sigsum is: " << sigsum << std::endl;
}
int main()
{
    struct sigaction act, old;
    sigemptyset(&act.sa_mask);
    act.sa_flags = 0;
    act.sa_handler = hander;
    sigaction(2, &act, &old);
    while(true)
    {
        std::cout << "hello bite" << std::endl;
        sleep(1);
    }
}